package com.ruoyi.system.service;

import com.ruoyi.system.domain.BizProduct;
import com.ruoyi.system.domain.vo.BizProductResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BizProductService {

    List<BizProductResponse> selectProductList(BizProduct product);

    BizProductResponse selectProductById(Long productId);

    int insertProduct(BizProduct product);

    int updateProduct(BizProduct product);

    int deleteProductById(Long productId);

    int checkProductNameAndSeriesIdUnique(@Param("name") String name, @Param("seriesId") Long seriesId, @Param("id") Long id);

    int selectCount(BizProduct product);
}
